package demo5;

public class Test {

    public static void main(String[] args) throws RuntimeException {
        Account account1=new Account(1001,"张三",1000);
        Account account2=new Account(1002,"李四",1500);
        account1.showMe();
        account2.showMe();
        account1.transfer(account1,account2,999);
        System.out.println("交换后余额-----");
        account1.showMe();
        account2.showMe();
    }
}
